package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * UpUserProfile entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_user_profile")
@IdClass(e2q.portal.domain.uPortal.UpUserProfileId.class)
public class UpUserProfile implements java.io.Serializable {

	// private Department department;
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "USER_ID")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer userId;
	@Id
	@Column(name = "PROFILE_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer profileId;
	@Column(name = "PROFILE_NAME")
	private String profileName;
	@Column(name = "DESCRIPTION")
	private String description;
	@Column(name = "LAYOUT_ID")
	private Integer layoutId;
	@Column(name = "STRUCTURE_SS_ID")
	private Integer structureSsId;
	@Column(name = "THEME_SS_ID")
	private Integer themeSsId;

	// Constructors

	/** default constructor */
	public UpUserProfile() {
	}

	public UpUserProfile(Integer userId, Integer profileId) {
		this.userId = userId;
		this.profileId = profileId;
	}

	/** full constructor */
	public UpUserProfile(Integer userId, Integer profileId, String profileName,
			String description, Integer layoutId, Integer structureSsId,
			Integer themeSsId) {
		this.userId = userId;
		this.profileId = profileId;
		this.profileName = profileName;
		this.description = description;
		this.layoutId = layoutId;
		this.structureSsId = structureSsId;
		this.themeSsId = themeSsId;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getProfileId() {
		return this.profileId;
	}

	public void setProfileId(Integer profileId) {
		this.profileId = profileId;
	}

	public String getProfileName() {
		return this.profileName;
	}

	public void setProfileName(String profileName) {
		this.profileName = profileName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getLayoutId() {
		return this.layoutId;
	}

	public void setLayoutId(Integer layoutId) {
		this.layoutId = layoutId;
	}

	public Integer getStructureSsId() {
		return this.structureSsId;
	}

	public void setStructureSsId(Integer structureSsId) {
		this.structureSsId = structureSsId;
	}

	public Integer getThemeSsId() {
		return this.themeSsId;
	}

	public void setThemeSsId(Integer themeSsId) {
		this.themeSsId = themeSsId;
	}

}